package com.yiyuan.app.entity.param;

import com.guaike.core.entity.annotation.IsDictValue;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("发起挑战请求入参")
public class BattleDTO extends BaseIdDTO {

    @ApiModelProperty(value = "挑战类型(0:推币机，1：街机，2：娱乐)", required = true)
    @NotNull(message = "挑战类型不能为空")
    @IsDictValue(code = BusinessDictCodeConstant.ROOM_TYPE, message = "挑战类型不正确")
    private Integer battleType;
}
